<template>
  <div>
    <el-button @click="start">开始</el-button>
  </div>
</template>
<script>
import { createSocket } from '../assets/js/websocketTest.js'

export default {
  data() {
    return {}
  },
  methods: {
    start() {
      for (let i = 0; i < 100; i++) {
        this.$store.state.Num = 13357146917 + i
        this.$store.state.Password = 123
        setTimeout(() => {
          createSocket('ws://112.124.67.119:6060/test')
        }, 1000)
      }
    }
  }
}
</script>
